#ifndef GETPOINT_H
#define GETPOINT_H

#include <QWidget>
#include <QPoint>
#include <QEvent>
#include "scene.h"
#include <QFile>
#include <QFileDialog>
#include <QAction>
#include <QMenuBar>
#include <QMouseEvent>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QString>
#include<QtDebug>
#include<qpixmap.h>
#include <QImage>
#include <QMessageBox>
#include <QStringList>
#include <QPushButton>
#include <QLabel>
#include <QLineEdit>
#include <QMenu>
#include <cstdio>

QT_BEGIN_NAMESPACE
namespace Ui { class getpoint; }
QT_END_NAMESPACE

class getpoint : public QWidget
{
    Q_OBJECT

public:
    getpoint(QWidget *parent = nullptr);
    ~getpoint();

private slots:
    void openfile();
    void savefile();
    void setx_u();
    void sety_u();
    void setinit();
private:
    Ui::getpoint *ui;
    QWidget *w,*wl,*wr;
    QImage *image;
    QLineEdit *x_index,*y_index,*o_index;
    QPushButton *set_x,*set_y,*set_o;
    QMenuBar *bar;
    QAction *open,*ept;
    QPoint xunit,yunit,origin;
    QFileDialog *file,*save;
    scene *plot;
    QHBoxLayout *hfirst,*hup,*hcenter,*hdown,*right;
    QVBoxLayout *left;
    double xo,yo;
    double xx,yx;
    double xy,yy;
    double x_u,y_u;
};
#endif // GETPOINT_H
